package com.foreverwin.mes.so.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.foreverwin.mes.so.model.ShopOrderDispatchDetail;
import com.baomidou.mybatisplus.service.IService;
import com.foreverwin.mes.core.base.FrontPage;

import java.util.List;

/**
 * <p>
 * 工单派工明细表 服务类
 * </p>
 *
 * @author Syngna
 * @since 2020-02-06
 */
public interface ShopOrderDispatchDetailService extends IService<ShopOrderDispatchDetail> {

    /**
     *  分页查询
     * @param frontPage
     * @return
     */
    Page<ShopOrderDispatchDetail> selectPage(FrontPage<ShopOrderDispatchDetail> frontPage, ShopOrderDispatchDetail shopOrderDispatchDetail);

    List<ShopOrderDispatchDetail> selectList(ShopOrderDispatchDetail shopOrderDispatchDetail);

    List<ShopOrderDispatchDetail> listByShopOrder(String site, String shopOrder);

    List<ShopOrderDispatchDetail> listVisibleByResource(String site, String resrce);

    String release(String site, String user, List<String> taskDetailHandleList);

    String revert(String site, String user, List<String> taskDetailHandleList);

    void sfcAutoStart(String site, String user, String operation, String resource, String taskNo, String lotNo);

    List<String> sfcManualStart(String site, String user, String operation, String resource, String taskOrSfcNo);
}